package net.wwang.blog.commons.global;


/**
 * @author WangWei
 * @date 2020/8/14
 */
public interface Constants {
    int DEFAULT_SIZE = 30;

    interface User {
        String SYSTEM_COOKIE_TOKEN = "system_cookie_token";
        //角色
        String ROLE_ADMIN = "admin";
        String ROLE_TOURISTL = "tourist";
        String ROLE_GENERAL_USER = "user";

        //异步串口前缀
        String BLOG_TASK_WORKER = "blog_task_worker";
        //默认头像
        String DEFAULT_AVATAR = "http://wwang-net.oss-cn-beijing.aliyuncs.com/file/wwang.png";
        //默认状态 ”1“代表可用
        String DEFAULT_STATE = "1";
        //验证码前缀
        String KEY_CAPTCHA_CONTENT = "key_captcha_content_";
        //邮箱前缀
        String KEY_EMAIL_CODE_CONTENT = "key_email_code_content";
        //发送邮件IP
        String KEY_EMAIL_SEND_IP = "email_key_send_ip_";
        //发送邮件地址
        String KEY_EMAIL_SEND_ADRESS = "email_key_send_adress_";
        //token前缀
        String KEY_TOKEN = "key_token_";
    }

    interface Settings {
        //初始管理员状态
        String MANAGER_ACCOUNT_INIT_STATE = "manager_account_init_state";
    }

    interface  TimeValue{
        //单位：毫秒
        int   TIME_TWO_HOUR = 2*60*60;
        int   TIME_TOKEN_ONE_MOUNTH =30*24*60*60;
        int   TIME_COOKIE_ONE_YEAR = 24*60*60*365;
        int   TIME_COOKIE_FIVE_YEAR = 5*24*60*60*365;
        int   TIME_COOKIE_TEN_YEAR = 10*24*60*60*365;


        //单位：秒

    }
    interface  Page{
        int DEFAULT_PAGE =1;
        int MIN_SIZE = 10;

    }


}
